// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.vehicles;

import java.nio.ByteBuffer;

public final class ClipperOffset {
    private final long address = this.newInstance();

    private native long newInstance();

    public native void clear();

    public native void addPath(int numPoints, ByteBuffer points, int joinType, int endType);

    public native void execute(double delta);

    public native int getPolygonCount();

    public native int getPolygon(int index, ByteBuffer vertices);

    public static enum EndType {
        etClosedPolygon,
        etClosedLine,
        etOpenButt,
        etOpenSquare,
        etOpenRound;
    }

    public static enum JoinType {
        jtSquare,
        jtRound,
        jtMiter;
    }
}
